package com.gbei.center;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableEurekaClient
@EnableFeignClients(basePackages = "com.gbei.center.utils")
@SpringBootApplication(scanBasePackages = "com.gbei.center.*")
@MapperScan(basePackages = "com.**.mapper")
@ServletComponentScan  //注册过滤器注解
@Configuration
public class OAuthServerApplication {

	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(OAuthServerApplication.class);
		application.run(args);
	}
}
